extends ../../layout

block content
    .container
        .row
            table.table.table-bordered.table-hover
                tr
                    th 电影名称
                    th 导演
                    th 上映时间
                    th 录入/修改时间
                    th 修改操作
                    th 删除操作
                each movie in movies
                    tr
                        td #{movie.name}
                        td #{movie.director}
                        td #{movie.year}
                        td.time #{movie.time}
                        td
                            a.btn.btn-default(href='/movie/add?id=#{movie._id}') 修改
                        td
                            a.btn.btn-danger.del(href='javascript:void(0)', data-url='/movie/del', data-id='#{movie._id}') 删除

    script(src='/js/delete.js', type='text/javascript')
    script(src='/libs/moment/moment.js', type='text/javascript')
    script(src='/js/time.js', type='text/javascript')